<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.baidu.ueditor.ActionEnter" %>
<%@ page import="com.baidu.ueditor.upload.StorageManager" %>
<%@ page import="com.gitee.qdbp.general.common.api.files.service.IWebFileService" %>
<%@ page import="com.gitee.qdbp.general.common.web.controller.files.UeditorUploader" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>

<%@ page trimDirectiveWhitespaces="true" %>
<%

    request.setCharacterEncoding( "utf-8" );
	response.setHeader("Content-Type" , "text/html");
	
	String rootPath = application.getRealPath( "/" );
	
	ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(request.getServletContext());
	IFileService files = ac.getBean(IFileService.class);

	out.write( new ActionEnter(new UeditorUploader(files), request, rootPath).exec());
//	out.write( new ActionEnter( new StorageManager(), request, rootPath ).exec() );
%>